xen/evtchn: modify evtchn_alloc_unbound to allocate specified port
authorRahul Singh <rahul.singh@arm.com>
Wed, 7 Sep 2022 16:27:35 +0000 (17:27 +0100)
committerJulien Grall <jgrall@amazon.com>
Thu, 8 Sep 2022 11:21:59 +0000 (12:21 +0100)
commit5324b179e4658b270c33004038b34c7eaf197ce6
tree76264f66f19935d2dca44138a9df8b94f5dd719f
parent0a8ef2fa450aa9673dd2e0d25bb16931aea2bf1e
xen/evtchn: modify evtchn_alloc_unbound to allocate specified port

Currently evtchn_alloc_unbound() always allocates the next available
port. Static event channel support for dom0less domains requires
allocating a specified port.

Modify the evtchn_alloc_unbound() to accept the port number as an
argument and allocate the specified port if available. If the port
number argument is zero, the next available port will be allocated.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/domain_build.c
xen/common/event_channel.c
xen/include/xen/event.h